import { IKeyFrame } from "./IKeyFrame";
import { IMemberInfo } from "./IMemberInfo";

/**
 * 服务端发送的事件
 */
export interface IS2CEventCallbackMap {
  "negotiation": (arg: RTCSessionDescriptionInit) => void;
  "will_disconnect": (reason: string) => void;
  "othter_join_room": (user: IMemberInfo) => void;
  "othter_exit_room": (user: IMemberInfo) => void;
  "ice_candidate": (candidate: RTCIceCandidate) => void;
  "key_frames": (key_frames: IKeyFrame[]) => void;
}
